﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using KPIS.GERP.GIMS.MODEL;
using KPIS.GERP.GIMS.DAL;
using KPIS.GERP.GIMS.DALFactory;
using KPIS.DBM;

namespace KPIS.GERP.GIMS.BLL
{
    public class BidderCollateralBLL
    {
        private static readonly BidderCollateralDAL dal = DataAccess.CreateBidderCollateral();

        public BidderCollateralBLL()
        {
        }

        public BidderCollateralInfo GetBidderCollateral(int ColSeq)
        {
            return dal.GetBidderCollateral(ColSeq);
        }

        public IList<BidderCollateralInfo> GetBidderCollateralFromParent(int BidderSeq)
        {
            return dal.GetBidderCollateralFromParent(BidderSeq);
        }

        public void Insert(BidderCollateralInfo info)
        {
            dal.Insert(info);
        }

        public void Update(BidderCollateralInfo info)
        {
            dal.Update(info);
        }

        public void DeleteFromDB(IList<BidderCollateralInfo> infoList)
        {
            dal.DeleteFromDB(infoList);
        }
    }
}
